package Menu;

import javax.swing.*;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import Menu.menu;

public class Eliminaciones extends JDialog{
	private Button botonregresa=new Button("Regresa Menu");
	private Frame menuvar;
	
	public Eliminaciones(Frame menupar){
		menuvar=menupar;
		setLayout(new FlowLayout());
		setTitle("Menu Eliminaciones");
		setSize(500, 400);
		botonregresa.addActionListener(new ActionListener() {
			
			@Override
			public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub
				if (e.getSource()==botonregresa){
					setVisible(false);
					menuvar.setVisible(true);
				}
			}
		});
		add(botonregresa);
		setVisible(true);
	}
}
